import request from '@/utils/request'

/**
 * 添加购物车
 * @param {*} goodsId 商品id
 * @param {*} goodsNum 商品数量
 * @param {*} goodsSkuId 商品规格id
 * @returns 
 */
export const addCartApi = (goodsId, goodsNum, goodsSkuId) => {
    return request.post('/cart/add', {
        goodsId,
        goodsNum,
        goodsSkuId
    })
}

export const getCartListApi = () => {
    return request.get('/cart/list')
}



